<template>
	<div class="profile">
		<div>{{ counter }}</div>
		<button @click="addCounter">+1</button>

		<div>{{ loginInfo }}</div>
	</div>
</template>

<script setup lang="ts">
	// const counter = useCount()
	const counter = useCounter()
	function addCounter() {
		counter.value++
		loginInfo.value.age++
	}

	const loginInfo = useLogin()
</script>
